package cn.tedu.zx.order.adapter.mapper;

import cn.tedu.zx.pojo.order.dto.BookingPrepareDto;
import cn.tedu.zx.pojo.order.entity.Booking;
import cn.tedu.zx.pojo.order.vo.BookingDetailsVO;
import cn.tedu.zx.pojo.order.vo.BookingListVO;
import cn.tedu.zx.pojo.order.vo.UserBookingListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Booking> {
    List<BookingListVO> list();

    List<Booking> dateList();

    BookingDetailsVO selectDetails(Long id);

    List<BookingPrepareDto> prepareList(String date, Long categoryId);

    List<UserBookingListVO> listByUserId(Long userId);

    void deleteByUserId(Long id);
}
